iface->grab_focus = gtk_cell_accessible_grab_focus;
}
-/**
- * _gtk_cell_accessible_set_cell_data:
- * @cell: a #GtkCellAccessible
- *
- * Sets the cell data to the row used by @cell. This is useful in
- * particular if you want to work with cell renderers.
- *
- * Note that this function is potentially slow, so be careful.
- **/
-void
-_gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell)
-{
- AtkObject *parent;
-
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
- parent = gtk_widget_get_accessible (cell->widget);
- if (parent == NULL)
- return;
-
- _gtk_cell_accessible_parent_set_cell_data (GTK_CELL_ACCESSIBLE_PARENT (parent), cell);
-}
-
/**
* _gtk_cell_accessible_get_state:
* @cell: a #GtkCellAccessible
void _gtk_cell_accessible_state_changed (GtkCellAccessible *cell,
GtkCellRendererState added,
GtkCellRendererState removed);
-void _gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell);
void _gtk_cell_accessible_update_cache (GtkCellAccessible *cell);
void _gtk_cell_accessible_initialise (GtkCellAccessible *cell,
return 0;
}
-void
-_gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell)
-{
- GtkCellAccessibleParentIface *iface;
-
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
- iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
-
- if (iface->set_cell_data)
- (iface->set_cell_data) (parent, cell);
-}
-
void
_gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell)
GtkCellRendererState
( *get_renderer_state) (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
- void ( *set_cell_data) (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell);
/* actions */
void ( *expand_collapse) (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
GtkCellRendererState
_gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
-void _gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell);
void _gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
void _gtk_cell_accessible_parent_activate (GtkCellAccessibleParent *parent,
return flags;
}
-static void
-gtk_tree_view_accessible_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell)
-{
- set_cell_data (GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (parent))),
- GTK_TREE_VIEW_ACCESSIBLE (parent),
- cell);
-}
-
static void
gtk_tree_view_accessible_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell)
iface->grab_focus = gtk_tree_view_accessible_grab_cell_focus;
iface->get_child_index = gtk_tree_view_accessible_get_child_index;
iface->get_renderer_state = gtk_tree_view_accessible_get_renderer_state;
- iface->set_cell_data = gtk_tree_view_accessible_set_cell_data;
iface->expand_collapse = gtk_tree_view_accessible_expand_collapse;
iface->activate = gtk_tree_view_accessible_activate;
iface->edit = gtk_tree_view_accessible_edit;